package com.hd.entity.activiti;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 评论操作表
 * @Author: hzhh123
 * @Date: 2018/8/12 0:09
 */
@Entity
@Table(name = "act_comment")
public class CommentEntity implements Serializable{
    //评论
    public static final String COMMENT_TYPE="comment";
    //签收
    public static final String COMMENT_CLAIM="claim";
    //反签收
    public static final String COMMENT_UNCLAIM="unclaim";
    //撤销
    public static final String COMMENT_REVOKE="revoke";
    //回退
    public static final String COMMENT_MOVEPREV="moveprev";
    //前进
    public static final String COMMENT_MOVENEXT="movenext";
    //作废
    public static final String COMMENT_INVALID="invalid";
    //转办
    public static final String COMMENT_TRANSFERTASK="transferTask";
    //委派
    public static final String COMMENT_DELEGATETASK="delegateTask";
    @Id
    private String id;
    /**
     * 评论人id
     */
    private String userid;
    /**
     * 评论人姓名
     */
    private String userName;
    /**
     * 评论时间
     */
    private Date time;
    /**
     * 评论内容
     */
    @Column(name = "comment",columnDefinition = "TEXT",nullable = true)
    private String comment;
    /**
     * 任务id
     */
    private String taskId;
    /**
     * 任务定义key
     */
    @Column(name="task_key")
    private String taskKey;
    /**
     * 任务名称
     */
    private String taskName;
    /**
     * 评论类型
     */
    private String type;
    /**
     * 流程实例ID
     */
    private String processInstanceId;
    /**
     * 是否打印 1-打印 0-不打印
     */
    private Integer print;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public String getTaskKey() {
        return taskKey;
    }

    public void setTaskKey(String taskKey) {
        this.taskKey = taskKey;
    }

    public Integer getPrint() {
        return print;
    }

    public void setPrint(Integer print) {
        this.print = print;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }
}
